3.6.2 \(\int \frac {1}{(d+e x) (a+c x^2)} \, dx\) [502]

Optimal. Leaf size=86 \[ \frac {\sqrt {c} d \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{\sqrt {a} \left (c d^2+a e^2\right )}+\frac {e \log (d+e x)}{c d^2+a e^2}-\frac {e \log \left (a+c x^2\right )}{2 \left (c d^2+a e^2\right )} \]

[Out]

e*ln(e*x+d)/(a*e^2+c*d^2)-1/2*e*ln(c*x^2+a)/(a*e^2+c*d^2)+d*arctan(x*c^(1/2)/a^(1/2))*c^(1/2)/(a*e^2+c*d^2)/a^
(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.03, antiderivative size = 86, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.294, Rules used = {720, 31, 649, 211, 266} \begin {gather*} \frac {\sqrt {c} d \text {ArcTan}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{\sqrt {a} \left (a e^2+c d^2\right )}-\frac {e \log \left (a+c x^2\right )}{2 \left (a e^2+c d^2\right )}+\frac {e \log (d+e x)}{a e^2+c d^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[1/((d + e*x)*(a + c*x^2)),x]

[Out]

(Sqrt[c]*d*ArcTan[(Sqrt[c]*x)/Sqrt[a]])/(Sqrt[a]*(c*d^2 + a*e^2)) + (e*Log[d + e*x])/(c*d^2 + a*e^2) - (e*Log[
a + c*x^2])/(2*(c*d^2 + a*e^2))

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 211

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]/a)*ArcTan[x/Rt[a/b, 2]], x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rule 266

Int[(x_)^(m_.)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> Simp[Log[RemoveContent[a + b*x^n, x]]/(b*n), x] /; FreeQ
[{a, b, m, n}, x] && EqQ[m, n - 1]

Rule 649

Int[((d_) + (e_.)*(x_))/((a_) + (c_.)*(x_)^2), x_Symbol] :> Dist[d, Int[1/(a + c*x^2), x], x] + Dist[e, Int[x/
(a + c*x^2), x], x] /; FreeQ[{a, c, d, e}, x] &&  !NiceSqrtQ[(-a)*c]

Rule 720

Int[1/(((d_) + (e_.)*(x_))*((a_) + (c_.)*(x_)^2)), x_Symbol] :> Dist[e^2/(c*d^2 + a*e^2), Int[1/(d + e*x), x],
 x] + Dist[1/(c*d^2 + a*e^2), Int[(c*d - c*e*x)/(a + c*x^2), x], x] /; FreeQ[{a, c, d, e}, x] && NeQ[c*d^2 + a
*e^2, 0]

Rubi steps

\begin {align*} \int \frac {1}{(d+e x) \left (a+c x^2\right )} \, dx &=\frac {\int \frac {c d-c e x}{a+c x^2} \, dx}{c d^2+a e^2}+\frac {e^2 \int \frac {1}{d+e x} \, dx}{c d^2+a e^2}\\ &=\frac {e \log (d+e x)}{c d^2+a e^2}+\frac {(c d) \int \frac {1}{a+c x^2} \, dx}{c d^2+a e^2}-\frac {(c e) \int \frac {x}{a+c x^2} \, dx}{c d^2+a e^2}\\ &=\frac {\sqrt {c} d \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{\sqrt {a} \left (c d^2+a e^2\right )}+\frac {e \log (d+e x)}{c d^2+a e^2}-\frac {e \log \left (a+c x^2\right )}{2 \left (c d^2+a e^2\right )}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.02, size = 63, normalized size = 0.73 \begin {gather*} \frac {\frac {2 \sqrt {c} d \tan ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {a}}\right )}{\sqrt {a}}+2 e \log (d+e x)-e \log \left (a+c x^2\right )}{2 c d^2+2 a e^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[1/((d + e*x)*(a + c*x^2)),x]

[Out]

((2*Sqrt[c]*d*ArcTan[(Sqrt[c]*x)/Sqrt[a]])/Sqrt[a] + 2*e*Log[d + e*x] - e*Log[a + c*x^2])/(2*c*d^2 + 2*a*e^2)

________________________________________________________________________________________

Maple [A]
time = 0.49, size = 69, normalized size = 0.80

method result size
default \(\frac {e \ln \left (e x +d \right )}{e^{2} a +c \,d^{2}}+\frac {c \left (-\frac {e \ln \left (c \,x^{2}+a \right )}{2 c}+\frac {d \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{\sqrt {a c}}\right )}{e^{2} a +c \,d^{2}}\) \(69\)
risch \(\frac {e \ln \left (e x +d \right )}{e^{2} a +c \,d^{2}}+\frac {\left (\munderset {\textit {\_R} =\RootOf \left (1+\left (a^{2} e^{2}+a c \,d^{2}\right ) \textit {\_Z}^{2}+2 a e \textit {\_Z} \right )}{\sum }\textit {\_R} \ln \left (\left (\left (3 e^{2} a -c \,d^{2}\right ) \textit {\_R} +3 e \right ) x +4 a d e \textit {\_R} +d \right )\right )}{2}\) \(86\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(e*x+d)/(c*x^2+a),x,method=_RETURNVERBOSE)

[Out]

e*ln(e*x+d)/(a*e^2+c*d^2)+c/(a*e^2+c*d^2)*(-1/2*e*ln(c*x^2+a)/c+d/(a*c)^(1/2)*arctan(c*x/(a*c)^(1/2)))

________________________________________________________________________________________

Maxima [A]
time = 0.52, size = 76, normalized size = 0.88 \begin {gather*} \frac {c d \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{{\left (c d^{2} + a e^{2}\right )} \sqrt {a c}} - \frac {e \log \left (c x^{2} + a\right )}{2 \, {\left (c d^{2} + a e^{2}\right )}} + \frac {e \log \left (x e + d\right )}{c d^{2} + a e^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(e*x+d)/(c*x^2+a),x, algorithm="maxima")

[Out]

c*d*arctan(c*x/sqrt(a*c))/((c*d^2 + a*e^2)*sqrt(a*c)) - 1/2*e*log(c*x^2 + a)/(c*d^2 + a*e^2) + e*log(x*e + d)/
(c*d^2 + a*e^2)

________________________________________________________________________________________

Fricas [A]
time = 2.67, size = 139, normalized size = 1.62 \begin {gather*} \left [\frac {d \sqrt {-\frac {c}{a}} \log \left (\frac {c x^{2} + 2 \, a x \sqrt {-\frac {c}{a}} - a}{c x^{2} + a}\right ) - e \log \left (c x^{2} + a\right ) + 2 \, e \log \left (x e + d\right )}{2 \, {\left (c d^{2} + a e^{2}\right )}}, \frac {2 \, d \sqrt {\frac {c}{a}} \arctan \left (x \sqrt {\frac {c}{a}}\right ) - e \log \left (c x^{2} + a\right ) + 2 \, e \log \left (x e + d\right )}{2 \, {\left (c d^{2} + a e^{2}\right )}}\right ] \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(e*x+d)/(c*x^2+a),x, algorithm="fricas")

[Out]

[1/2*(d*sqrt(-c/a)*log((c*x^2 + 2*a*x*sqrt(-c/a) - a)/(c*x^2 + a)) - e*log(c*x^2 + a) + 2*e*log(x*e + d))/(c*d
^2 + a*e^2), 1/2*(2*d*sqrt(c/a)*arctan(x*sqrt(c/a)) - e*log(c*x^2 + a) + 2*e*log(x*e + d))/(c*d^2 + a*e^2)]

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(e*x+d)/(c*x**2+a),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [A]
time = 1.71, size = 79, normalized size = 0.92 \begin {gather*} \frac {c d \arctan \left (\frac {c x}{\sqrt {a c}}\right )}{{\left (c d^{2} + a e^{2}\right )} \sqrt {a c}} - \frac {e \log \left (c x^{2} + a\right )}{2 \, {\left (c d^{2} + a e^{2}\right )}} + \frac {e^{2} \log \left ({\left | x e + d \right |}\right )}{c d^{2} e + a e^{3}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(e*x+d)/(c*x^2+a),x, algorithm="giac")

[Out]

c*d*arctan(c*x/sqrt(a*c))/((c*d^2 + a*e^2)*sqrt(a*c)) - 1/2*e*log(c*x^2 + a)/(c*d^2 + a*e^2) + e^2*log(abs(x*e
 + d))/(c*d^2*e + a*e^3)

________________________________________________________________________________________

Mupad [B]
time = 0.82, size = 230, normalized size = 2.67 \begin {gather*} \frac {e\,\ln \left (d+e\,x\right )}{c\,d^2+a\,e^2}-\frac {\ln \left (3\,c^2\,e^2\,x+c^2\,d\,e-\frac {c^2\,e\,\left (a\,e-d\,\sqrt {-a\,c}\right )\,\left (-c\,x\,d^2+4\,a\,d\,e+3\,a\,x\,e^2\right )}{a^2\,e^2+c\,a\,d^2}\right )\,\left (a\,e-d\,\sqrt {-a\,c}\right )}{2\,\left (a^2\,e^2+c\,a\,d^2\right )}-\frac {\ln \left (3\,c^2\,e^2\,x+c^2\,d\,e-\frac {c^2\,e\,\left (a\,e+d\,\sqrt {-a\,c}\right )\,\left (-c\,x\,d^2+4\,a\,d\,e+3\,a\,x\,e^2\right )}{a^2\,e^2+c\,a\,d^2}\right )\,\left (a\,e+d\,\sqrt {-a\,c}\right )}{2\,\left (a^2\,e^2+c\,a\,d^2\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/((a + c*x^2)*(d + e*x)),x)

[Out]

(e*log(d + e*x))/(a*e^2 + c*d^2) - (log(3*c^2*e^2*x + c^2*d*e - (c^2*e*(a*e - d*(-a*c)^(1/2))*(4*a*d*e + 3*a*e
^2*x - c*d^2*x))/(a^2*e^2 + a*c*d^2))*(a*e - d*(-a*c)^(1/2)))/(2*(a^2*e^2 + a*c*d^2)) - (log(3*c^2*e^2*x + c^2
*d*e - (c^2*e*(a*e + d*(-a*c)^(1/2))*(4*a*d*e + 3*a*e^2*x - c*d^2*x))/(a^2*e^2 + a*c*d^2))*(a*e + d*(-a*c)^(1/
2)))/(2*(a^2*e^2 + a*c*d^2))

________________________________________________________________________________________